<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>企业信息</title>
	<meta name="decorator" content="default"/>
	<link href="${ctxCss}/common/listPage.css" type="text/css" rel="stylesheet" />
	<script type="text/javascript" src="${ctxScript}/bus/vaccineEnt.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
	<style>
		.btn-yellow{
			color: #ffffff;
			text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
			background-color: #ffc266;
			*background-color: #ffc266;
			border-color: #dd5600 #dd5600 #913800;
			border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
		}
		.btn:hover {
			color: #fff;
		}
	</style>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/bus/vaccineEnt/">企业信息</a></li>
		<%--<shiro:hasPermission name="bus:vaccineEnt:edit"><li><a href="${ctx}/bus/vaccineEnt/form">疫苗厂家信息添加</a></li></shiro:hasPermission>--%>
	</ul>
	<form:form id="searchForm" modelAttribute="vaccineEnt" action="${ctx}/bus/vaccineEnt/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>企业名称:</label>
				<form:input path="name" htmlEscape="false" maxlength="50" class="input-medium" />
			</li>
			<li><label>疫苗品种:</label>
				<form:select path="vaccineTypeCode" class="input-medium"  maxlength="4" style="width:251px;height:30px;" >
					<option value="">请选择</option>
					<form:options items="${fns:getDictList('vaccineType')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select></li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="btns"><input id="btnAdd" class="btn btn-yellow" style="background: #ffc266!important;" type="button" value="新增" onclick="vaccineEntAdd('')"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>序号</th>
				<th>企业名称</th>
				<th>疫苗品种</th>
				<shiro:hasPermission name="bus:vaccineEnt:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="vaccineEnt" varStatus="status">
			<tr>
				<td>
					${status.index+1+(page.pageNo-1)*page.pageSize}
				</td>
				<td><a href="javascript:;" onclick="vaccineEntAdd('${vaccineEnt.id}')">
					${vaccineEnt.name}
				</a></td>
				<td>
						${vaccineEnt.vaccineTypeName}
				</td>
				<shiro:hasPermission name="bus:vaccineEnt:edit"><td>
					<a href="javascript:;" onclick="vaccineEntAdd('${vaccineEnt.id}')">修改</a>
					<a href="${ctx}/bus/vaccineEnt/delete?id=${vaccineEnt.id}" onclick="return confirmx('确认要删除该疫苗厂家信息吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>